package com.fw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author james
 * @since 2021-06-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class User extends BaseEntry {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    private String email;

    private String uname;

    private String password;

    /**
     * 1管理员、2养殖场、3屠宰场、4批发市场、5批发商、6零售商
     */
    private String utype;

    /**
     * 1备案通过、2备案申请中、3账号封禁
     */
    private String ustate;

    private Date ucreatedate;

    private String avatar;

    @TableField(exist = false)
    private String token;

}
